import { getPageList, getShortUrl, setPageRemark, addPage, delPage } from '@/services/PageDecoration'

export default () => {
  const GetPageList = (params: any) => {
    return getPageList(params)
  }

  // 短链
  const GetShortUrl = (params: any) => {
    return getShortUrl(params)
  }

  // 备注
  const SetPageRemark = (data: any) => {
    return setPageRemark(data)
  }

  // 新增装修页面
  const AddPage = (data: any) => {
    return addPage(data)
  }

  // 删除装修页面
  const DelPage = (data: any) => {
    return delPage(data)
  }

  return {
    GetPageList,
    GetShortUrl,
    SetPageRemark,
    AddPage,
    DelPage
  }
}
